package com.wmcsk.dl.bean;


import com.wmcsk.dl.anum.CheckMust;

import sdkshell.kuaiyan.com.kuaiyansdk.BuildConfig;

/**
 * Created by wm on 2016/12/6.
 */
public class SDKConfig extends com.wmcsk.base.BaseCheckBean {
    /**
     * 点击的图标
     */
    @CheckMust
    private int ic_luncher;
    private String sdkVersionCode;
    private String useXmlLayout;
    private String appKey;
    private boolean isPush;
    private SDKConfig(int ic_luncher, String useXmlLayout, String appKey, boolean isPush){
        this.ic_luncher = ic_luncher;
        this.useXmlLayout = useXmlLayout;
        this.sdkVersionCode = BuildConfig.VERSION_CODE+"";
        this.appKey = appKey;
        this.isPush=isPush;
    }
    public String getAppKey() {
        return appKey;
    }
    public int getIc_luncher() {
        return ic_luncher;
    }

    public String getUseXmlLayout() {
        return useXmlLayout;
    }


    public String getSdkVersionCode() {
        return sdkVersionCode;
    }
    public boolean getIsPush(){
        return isPush;
    }
    public static class Buillder{
        /**
         * 点击的图标
         */
        private int ic_luncher;

        private String useXmlLayout;

        private String appKey;
        private boolean isPush=false;
        public Buillder setAppKey(String appKey) {
            this.appKey = appKey;
            return this;
        }
        public Buillder setIsPush(boolean isPush) {
            this.isPush = isPush;
            return this;
        }
        public Buillder setUseXmlLayout(String useXmlLayout) {
            this.useXmlLayout = useXmlLayout;
            return this;
        }

        public Buillder setIc_luncher(int ic_luncher) {
            this.ic_luncher = ic_luncher;
            return this;
        }

        public SDKConfig build(){
            return new SDKConfig(ic_luncher,useXmlLayout,appKey,isPush);
        }
    }
}
